package main
import "fmt"

func myfunc2(arge ...int){
	for _,data:=range arge{
		fmt.Printf("%d\n",data)
	}
}

func myfunc(a ...int){
	myfunc2(a[2:5]...)
}

func main(){
	var (
		n int
		a[100] int
	)
	fmt.Scanf("%d",&n)
	for i:= 1; i<=n; i++{
		fmt.Scanf("%d",&a[i])
	}
	for i:=1;i<=n;i++{
		fmt.Printf("%d\n",a[i])
	}
	myfunc(a[1],a[2],a[3],a[4],a[5])
}